package de.hdm.articastle;

import java.util.Date;

public class Bullet {
	public int startX = 0;
	public int startY = 0;
	public int x = 0;
	public int y = 0;
	public int size = 0;
	public int xSpeed = 0;
	public int ySpeed = 0;
	public long time = 1L;
	public boolean hit1 = false;
	public boolean hit2 = false;
	public int endX = 0;
	public int endY = 0;
	public double endTime = 0.0;
	
	public Bullet(int x, int y, int size, int xSpeed, int ySpeed)
	{
		this.startX = x;
		this.startY = y;
		this.size = size;
		this.xSpeed = xSpeed;
		this.ySpeed = ySpeed;		
	}
	
	public Bullet(Bullet bullet)
	{
		this.startX = bullet.startX;
		this.startY = bullet.startY;
		this.size = bullet.size;
		this.xSpeed = bullet.xSpeed;
		this.ySpeed = bullet.ySpeed;
	}
	
	public void setTime()
	{
		time = new Date().getTime();
	}
}
